package org.jeecg.modules.car.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.system.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 月卡收费规则
 * @Author: jeecg-boot
 * @Date:   2020-09-01
 * @Version: V1.0
 */
@Data
@TableName("car_fee_rule")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="car_fee_rule对象", description="月卡收费规则")
public class CarFeeRule extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**tenantId*/
    @ApiModelProperty(value = "tenantId")
	private String tenantId;
	/**projectId*/
    @ApiModelProperty(value = "项目")
	private String projectId;

	/**车场*/
    @ApiModelProperty(value = "车场")
	private String parkId;

	@TableField(exist = false)
	@Excel(name = "车场", width = 15)
	private String parkName;

	/**规则名称*/
	@Excel(name = "规则名称", width = 15)
    @ApiModelProperty(value = "规则名称")
	private String name;
	/**收费项目编号*/
    @ApiModelProperty(value = "收费项目id")
	private String feeItemId;

	@TableField(exist = false)
	@Excel(name = "收费项", width = 15)
	private String feeItemName;

	/**收费金额/每月*/
	@Excel(name = "收费金额/每月", width = 15)
    @ApiModelProperty(value = "收费金额/每月")
	private java.math.BigDecimal price;
	/**基准月数*/
	@Excel(name = "基准月数", width = 15)
    @ApiModelProperty(value = "基准月数")
	private Integer baseMonth;
	/**优惠月数*/
	@Excel(name = "优惠月数", width = 15)
    @ApiModelProperty(value = "优惠月数")
	private Integer reducedMonth;
	/**最低缴费月个数*/
	@Excel(name = "最低缴费月个数", width = 15)
	@ApiModelProperty(value = "最低缴费月个数")
	private Integer leastMonth;
	/**createBy*/
	@Excel(name = "createBy", width = 15)
    @ApiModelProperty(value = "createBy")
	private String createBy;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**updateBy*/
	@Excel(name = "updateBy", width = 15)
    @ApiModelProperty(value = "updateBy")
	private String updateBy;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;
	/**remarks*/
	@Excel(name = "remarks", width = 15)
    @ApiModelProperty(value = "remarks")
	private String remarks;
	/**delFlag*/
	@Excel(name = "delFlag", width = 15)
    @ApiModelProperty(value = "delFlag")
	@TableLogic
	private String delFlag;
}
